import { showSuccessToast, showFailToast, showConfirmDialog  } from 'vant';

export default {
  install(app)
  {
    // var demo == window.demo
    // location = window.location 
    //在全局应用上面添加了一个自定义的属性
    // app.config.globalProperties == window
    // window.$success = showSuccessToast
    app.config.globalProperties.$success = showSuccessToast
    app.config.globalProperties.$fail = showFailToast
    app.config.globalProperties.$confirm = showConfirmDialog
  }
}